#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<math.h>
int main()
{
	float x = 0;
	float y = 0;
	scanf("%f %f", &x, &y);
	x = abs(x);
	y = abs(y);
	if ((x-2)*(x-2)+(y-2)*(y-2)<=1)
	{
		printf("10");
	}
	else
	{
		printf("0");
	}
	return 0;
}